package com.study.samsung.Service;

import cn.hutool.db.sql.Order;
import com.study.samsung.Dao.OrdersDao;
import com.study.samsung.Entity.Orders;
import com.study.samsung.Utils.OrderPager;
import com.study.samsung.Utils.Pager;
import com.sun.org.apache.xpath.internal.operations.Or;

import java.util.List;

public class MyOrdersService {
    OrdersDao osd = new OrdersDao();

    public List<Orders> selectAll(Integer uid){
        return osd.selectAll(uid);
    }
    public List<Orders> selectOrders(Integer uid){
        return osd.selectOrders(uid);
    }
    public Integer ordersdel(Integer did){
        return osd.ordersdel(did);
    }

    public Integer selectId(){
        return osd.selectId();
    }

    public Integer cancelorder(Integer did){
        return osd.cancelorder(did);
    }

//    后台订单分页查询
public OrderPager selectByPager(Integer pageNo,Integer pageSize,String[] arr){
        return osd.selectByPager(pageNo,pageSize,arr);
}

public List<Orders> selectOrderShade(Integer did){
        return osd.selectOrderShade(did);
}


public Integer updateStatus(Integer did){
        return osd.updateStatus(did);
}

}
